
from base_config import HOUSE_HOST
from pages.base_page import BasePage
from pages.elements import Elements
from utils.log_manager import my_logger
'''
房源列表
'''
class HouseListPage(BasePage):
    url = HOUSE_HOST + 'houselist'
    def search_house(self,keyword):
        self.sleep(2)
        self.input_data(Elements.HOUSE_SEARCH_INPUT,keyword)
        self.click_element(Elements.HOUSE_SEARCH_BTN)


    def house_info(self):
        info = self.find_element(Elements.HOUSE_TABLE_INFO).text
        my_logger.logger.info("房源内容:{}", info)

